package org.example.designPattern.structural.decorator;

import java.math.BigDecimal;

/**
 * @description 基础版煎饼果子
 * @author: muse
 **/
public class JianBing extends Food {


    public JianBing() {
        this.addPrice();
    }

    @Override
    protected void addPrice() {
        price = price.add(new BigDecimal(7));
        System.out.println("基础版煎饼果子售价：" + 7 + "元");
    }
}
